home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er 1988 June
/
64er_Magazin_88-06_1988_Markt__Technik_de_Side_A.d64
/
wir machen musik
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
740b
|
32 lines
100 rem--------------------------------
110 rem wir machen musik
120 rem -------------------------------
130 s=54272
140 read a,d,su,r,c,p,f,m,ff,fr,ml
150 poke s+5 ,16*a +d
160 poke s+6 ,16*su+r
170 poke s+2 ,p and 255
180 poke s+3 ,p/256
190 hi=int(f/256):lo=f-256*hi
200 poke s ,lo
210 poke s+1 ,hi
220 poke s+22,ff
230 poke s+23,fr
240 poke s+24,ml
250 get a$:if a$="" then 250
260 : poke s+4,c or 1
270 : for i=1 to m:next i
280 : poke s+4,c and 254
290 goto 250
300 rem--------------------------------
305 rem parameter
310 rem--------------------------------
320 data 0,10,0,10:rem a d s r
330 data 16 :rem control-byte
340 data 2048 :rem pulsweite
350 data 40000 :rem tonhoehe
360 data 100 :rem verzoegerung
370 data 50 :rem filterfrequenz
380 data 0 :rem filterresonanz
390 data 15 :rem modus/laut